package com.kevin.j2eeToolBox.patterns.factoryMethod;

public class Apple implements Fruit {
	private int treeAge;

	/**
	 * 种植
	 */
	public void plant() {
		System.out.println("Apple has been planted.");
	}

	/**
	 * 生长
	 */
	public void grow() {
		System.out.println("Apple is growing...");
	}

	/**
	 * 收获
	 */
	public void harvest() {
		System.out.println("Apple has been harvested.");
	}

	/**
	 * @return 返回树龄
	 */
	public int getTreeAge() {
		return treeAge;
	}

	/**
	 * 设置树龄
	 */
	public void setTreeAge(int treeAge) {
		this.treeAge = treeAge;
	}
}
